package com.example.cloudcustomer.client;

import com.example.cloudcustomer.fallback.CustomerClientFallback;
import com.example.cloudcustomer.fallback.CustomerClientFallbackFactory;
import io.github.resilience4j.circuitbreaker.annotation.CircuitBreaker;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Project: spring-cloud
 * @Package: com.example.cloudcustomer.client
 * @Author: 壹陸捌
 * @Time: 2025 - 08 - 04 18 : 06
 * @Description: 消费方客户端
 */

@FeignClient(name="cloud-provider",path = "/api/provider")
public interface CustomerClient {
    @RequestMapping(value="/selectProvider/{mark}", method = RequestMethod.GET)
    String selectProvide(@PathVariable("mark") String mark);

}
